/*
============================================================
  Site structure
============================================================
*/
body {
    text-decoration: none;
    color: #000;

    font-family: "Verdana", "sans-serif";
    font-style: normal;
    font-size: 1em;
    font-weight: normal;
    font-variant: small-caps;
}

main {
    width: 800px;
    display: block;
    margin: 0 auto;
}

header {
    height: 5em;
}

.site-title {
    margin-top: 0;

    text-align: center;

    font-family: "Verdana", "sans-serif";
    font-style: normal;
    font-size: 3em;
    font-weight: normal;
    font-variant: small-caps;

    color: #3c3c3c;
}

input[type=button], .btn {
    font-family: "Verdana", "sans-serif";
    border: 1px solid #3c3c3c;
    background-color: #FFFFFF;

    padding: 0.5em 1em;

    transition-timing-function: ease;
    transition-duration: 0.2s;
}

input[type=button]:hover, .btn {
    border: 1px solid #000;
    background-color: #3c3c3c;
    color: #FFFFFF;

    cursor: pointer;

    text-decoration: none;
}

.message {
    font-family: "Verdana", "sans-serif";
    font-size: 1.4em;
    margin: 1em 0;
    display: block;
    transition: opacity 2s;
}

.message-success {
    color: #10d00a;
}

.clear {
    clear: both;
}

header nav {
    position: absolute;
    top: 0;
    right: 0;
}

header nav a {
    text-decoration: none;
    font-family: "Verdana", "sans-serif";
    font-size: 0.8em;
    margin: 1em 2em;

    color: grey;

    position: relative;
    float: right;

    display: inline-block;
}

header nav a:hover {
    text-decoration: underline;
    color: #000;
}

.button-fill {
    width: 100%;
}

/*
===============================================================
  Site modules
===============================================================
*/

/*
  Lesson
*/
.title-section {
    text-align: center;
}

.image-block {
    width: 640px;
    margin: 1em auto;
    min-height: 480px;
    max-height: 480px;
}

.image-block img {
    display: block;
    max-width: 100%;
    max-height: 480px;
    margin: 0 auto;
}

.title-text {
    margin: 1em auto;

    text-align: center;

    font-family: "Verdana", "sans-serif";
    font-style: normal;
    font-size: 1.875em;
    font-weight: normal;
    font-variant: small-caps;

    color: #000;
}

.nav-btn {
    display: inline-block;
}

/*
  Add image
*/
.add-image-section {
    width: 80%;
    margin-left: 10%;
}

.add-image-section input[type=url], input[type=text] {
    display: block;
    margin-top: 0.4em;
    margin-bottom: 0.5em;
    width: 100%;
}

.add-image-section label {
    font-family: "Verdana", "sans-serif";
    margin-top: 1em;
}

.add-image-section input[type=button] {
    display: block;
    margin: 1em auto;
}

/*
  Quiz
*/

input.letter {
    font-family: "Verdana", "sans-serif";
    font-style: normal;
    font-size: 1.875em;
    font-weight: normal;
    font-variant: small-caps;

    width: 1em;
    border: #000 1px solid;

    display: inline-block;

    margin: 0 0.2em;

    text-transform: uppercase;

    padding-left: 0.1em;
}

input.wrong {
    border-color: #d02713;
}

input.correct {
    border-color: green;
}

.response-block {
    margin: 1em auto;
    display: block;
    text-align: center;
}

/*
  Navigation
*/
main > nav {
    margin: 1em auto;
    text-align: center;
}

/*
  Index page
*/

.category-list {
    margin: 1em auto;

    text-align: center;
    width: 800px;
    color: #000;
}

.category-list ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    background-color: #fff;
    border: #fff 1px solid;

    width: 220px;
    height: 220px;

    max-width: 220px;
    max-height: 220px;

    display: inline-block;
    margin: 1em;

    float: left;

    word-wrap: break-word;
    padding-top: 10px;
}

div.category-image {
    width: 196px;
    height: 160px;

    max-width: 196px;
    max-height: 160px;

    margin: 0 auto;
}

div.category-image img {
    display: block;
    max-width: 100%;
    max-height: 196px;
    margin: 0 auto;
}

.category-list li a {
    display: inline;
    bottom: 1em;

    text-decoration: none;
    color: #000;

    font-family: "Verdana", "sans-serif";
    font-style: normal;
    font-size: 1em;
    font-weight: normal;
    font-variant: small-caps;

    text-transform: uppercase;
}

.category-list li:hover {
    border: #000 1px solid;
}

/*
  Login
*/

.data-block {
    border: 1px solid grey;
    border-radius: 5px;
    padding: 0.5em;
}

.center {
    margin: 0 auto;
}

.login-block {
    width: 18em;
    height: 8em;
}

.data-block-header {
    font-size: 1.5em;
    text-align: center;
}

.data-block-content {
    margin-top: 2em;
}

ul.login-methods {
    list-style: none;
}

.fb-btn {
    background-color: #4267B2;
    display: inline-block;
    width: 100%;

    font-family: "Arial", sans-serif;
    font-size: 1.2em;
}

/**
  Quiz select image
*/
.image-section ul {
    list-style-type: none;
    margin: 0;
    padding: 0;

    width: 800px;
}

.image-section li {
    list-style-type: none;
    margin: 1em;
    padding: 0;

    display: inline-block;

    float: left;
}

.cell-1-4 {
    min-width: 25%;
    max-width: 25%;
    min-height: 25%;
    max-height: 25%;
}

.quiz-image {
    width: 100%;
    max-height: 100%;
}